package com.xy.dp.adapter;

public class Program {
    public static void main(String[] args) {
        ITarget flyTarget = new ClassAdapter();
        flyTarget.fly();
        flyTarget.run();
        ITarget flyDeer = new ObjectAdapter(new Deer());
        flyDeer.run();
        flyDeer.fly();
    }
}
